<?php

header("Content-Type: application/json");
include('../../include/functions.inc.php');
$query = "SELECT A.CODE_RELEASE,A.CYCLES,B.NAME
        FROM cllg_pensum A,cllg_career B WHERE
        A.FK_CAREER=B.ID";
$string = $db->query_toJson_sql($query, array("CODIGO" => "CODE_RELEASE", "CARRERA" => "NAME", "CICLOS" => "CYCLES"));
//$string=$db->query_toJson("cllg_pensum",NULL,array("CODIGO"=>"CODE_RELEASE","CARRERA"=>"FK_CAREER","CICLOS"=>"CYCLES"));
echo $string;
?>